charset = "UTF-8";


$(document).ready(function() {
	
	//employmentPage.jsp �ҹ���ѹ��ͧ�����Ҩ�ҧ
	$('#employmentPage_JobType2').hide();
	$('#employmentPage_JobType1').hide();
	$('#employmentPage_Job').hide();
	$('#employmentPage_Job1').hide();
	$("#employmentPage_JobType").change(function() {
		if ($("#employmentPage_JobType").val() == 'employmentPage_JobType1') {
			$("#employmentPage_JobType2").hide();
//			query �����ŧҹ
			$("#employmentPage_JobType1").fadeIn('slow');
			$("#employmentPage_Job").fadeIn('slow');
			
		} else if ($("#employmentPage_JobType").val() == 'employmentPage_JobType2') {
			$("#employmentPage_JobType1").hide();
			$("#employmentPage_JobType2").fadeIn('slow');			
		} else{
			$("#employmentPage_JobType1").hide();
			$("#employmentPage_JobType2").hide();
		}
	});	
	
	$("#employmentPage_Job").change(function() {
		if ($("#employmentPage_Job").val() == 'employmentPage_Job1') {
			$("#employmentPage_Job1").fadeIn('slow');
//			query ��������������´
			
		} else{
			$("#employmentPage_Job1").hide();
		}
	});	
	
	
	// postJob.jsp -> if user choose post timeline is a end date 
//	$("#employmentPage_Job").change(function() {
//		if ($("#employmentPage_Job").val() == 'employmentPage_Job1') {
//			$("#employmentPage_Job1").fadeIn('slow');
////			query ��������������´
//			
//		} else{
//			$("#employmentPage_Job1").hide();
//		}
//	});	
	
});


$(document).ready(function() {
	$('#JobTabMenu').hide();
	$('#activityTabMenu').hide();
	$('#accountTabMenu').hide();
	$('#inviteTabMenu').hide();
	
});

function hideOrShowType($temp){
	$value = '#'.concat($temp);
	var array = new Array('#newsTabMenu','#JobTabMenu','#activityTabMenu','#accountTabMenu','#inviteTabMenu');
	for (var i = 0; i < array.length; i++) {
		if(array[i]==$value){
			$(array[i]).fadeIn("slow");
		}else{
			$(array[i]).hide();
		}
	}
}



